缘起

反正最好的编辑器之争由来已久,VimEmacs孰优孰劣争了这么久也没个结果。

我自己一直想去亲身探个究竟,但是几度往返,也只是窥了个皮毛,一直不用,又忘了个精光,今天重新开始学Vim,也对一些命令稍微记录下

先诛Vim,后灭Emacs

哎,只能慢慢来了,估计一时半会能用就不错了,牛还是先不吹了

Vim命令

  • h - Move Left
  • j - Move Down
  • k - Move Up
  • l - Move Right

Insertion Mode

  • i - insert before letter
  • I - insert beginning line
  • a - append after letter
  • A - append after line
  • o - open a new line after current line
  • O - open a new line before current line

Change Mode

  • r - replace a single character
  • R - replace all following character

Press : command

  • w - Save
  • q - Quit
  • q! - Quit without save
  • wq - Save and Quit